import Vue from 'vue'
import App from './App.vue'
import Order from '@/views/Order'
import My from '@/views/My'
import Classify from '@/views/Classify'
import FirstPage from '@/views/FirstPage'

Vue.config.productionTip = false
//引入 vue-router
import VueRouter from 'vue-router'
//让vue 使用 VueRouter 这个插件
Vue.use(VueRouter)
//创建路由实例
const router = new VueRouter({
  routes: [
    {
      path: '/Order',
      component: Order
    },
    {
      path: '/Classify',
      component: Classify
    },
    {
      path: '/My',
      component: My
    },
    {
      path: '/FirstPage',
      component: FirstPage
    },
  ]
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
